package com.xdf.xzymanagementsystem.service;
import com.mybatisflex.core.service.IService;
import com.xdf.xzymanagementsystem.entity.ProductMain;
import com.xdf.xzymanagementsystem.entity.ProductMainDTO;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Description : 服务层接口，由代码生成器自动生成
 * @Author : chanchaw
 * @Date : 2025-3-21 18:43:41
 */
public interface ProductMainService extends IService<ProductMain> {
    //=================以上是自动生成的代码，自定义代码请写在下面==================
    List<Map<String, Object>> selectAllDTO(Date sdate, Date edate, int flag);

    ProductMainDTO insertDTO(ProductMainDTO record) throws Exception;

    ProductMainDTO selectDTO(Integer id);

    ProductMainDTO updateDTO(ProductMainDTO record);

    void deleteByIds(List<Integer> ids);

    List<Map<String, Object>> selectInventory(String orderNo);

    List<Map<String, Object>> selectAllInventory();
}